
<div class="section" id="sitemaplist">

	<div class="section-title"><?php echo $heading_title?>User</div>
    
    <div class="section-content padding1">
    	<div class="error hidden"></div>
    	<form id="fchangepass" name="fchangepass" method="post">
        
        	<div class="button right">
            	<input type="button" value="Save" class="button"  onclick="changePass()"/>
     	        <input type="button" value="Cancel" class="button" onclick="linkto('<?php echo $cancel?>')"/>   
     	        <input type="hidden" name="userid" value="<?php echo $user['userid']?>" />   
            </div>
            <div class="clearer">^&nbsp;</div>
        
        	<div>
            	<p>
            		<label>User name</label><br />
					<?php echo $user['username']?>
                   
            	</p>
                <p>
            		<label>Full name</label><br />
					<?php echo $user['fullname']?>
                    
            	</p>
              	
                <p>
            		<label>Password</label><br />
					<input type="newpassword" name="newpassword" value="" class="text" size=60 />
                    
            	</p>
               
                
                
                
                
            </div>
            
        </form>
    
    </div>
    
</div>

<script language="javascript">
function changePass()
{
	$.blockUI({ message: "<h1>Please wait...</h1>" }); 
	$.post('?route=core/user/updatepass', $("#fchangepass").serialize(), function(data){
		if(data=="true")
		{
			$.blockUI({ message: "<h1>Your password has been changed</h1>" }); 
			window.location = '<?php echo $cancel?>'
		}
		else
		{
			$(".error").html(data).show('slow');
			$.unblockUI();
		}
	});	
}
</script>
      